package com.carleasoft.mps.cms.business.article.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carleasoft.mps.cms.business.article.bean.entity.AuthorityCategoryEntity;
import com.carleasoft.mps.cms.business.article.bean.po.CategoryPo;
import com.carleasoft.mps.cms.business.article.bean.vo.CategoryNameTreeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>Description: 栏目管理 CategoryDao</p>
 * @since 2021/7/5
 * @author taoyujing
 */
@Mapper
public interface CategoryDao extends BaseMapper<AuthorityCategoryEntity> {

    /**
     * 查询返回栏目名
     * @return
     */
    List<CategoryNameTreeVo> findAllCategoryTree(@Param("categoryPo") CategoryPo categoryPo);

    int selectLevelOrArticle(String category);
}
